//导入基础库，核心模块
import React, { Component, useState } from "react";
//reactDOM 处理dom用的，document object model 相当于一个标签
import ReactDOM from "react-dom/client";
import {Detail} from "./mypages/detail";


import App from "./App";
// import Mytolist from './17-mytolist'
const root = ReactDOM.createRoot(
  //获取id为root的标签
  document.getElementById("root") as HTMLElement
);

//组件调用必须是大写开头
root.render(
  <App></App>
);
